package Cowquisition;
/**
 * Class: ChunkTemplate
 * Defines a template for a chunk of the map. The templates are used for things like buildings
 * which probably wouldn't generate correctly if we generated them randomly.
 *
 * These will be predefined and serialised so we aren't generating or loading things we aren't using.
 */
public class ChunkTemplate
{
  /**
   * Class size is used like a c-style struct.
   * Mainly just used to keep information together.
   */
	private class size
	{
		public int x;
		public int y;
	}
  /**
   * Variable holding the chunk size
   */
	private size sz;
  /**
   * Constructor for ChunkTemplate class
   *
   * @param inx The x-size of the chunk
   * @param iny The y-size of the chunk
   */
	ChunkTemplate(int inx, int iny)
	{
		size sz = new size();
		sz.x = inx;
		sz.y = iny;
		Tile [][] tile = new Tile[sz.x][sz.y];
	}
  /**
   * Method: getXSize
   * 
   * @return Returns the x-size of the chunk
   */
	public int getXSize()
	{
		return sz.x;
	}
  /**
   * Method: getYSize
   *
   * @return Returns the y-size of the chunk
   */
	public int getYSize()
	{
		return sz.y;
	}
  /**
   * Method: getTile
   *
   * @param x The x-coordinate of the tile to get.
   * @param y The y-coordinate of the tile to get.
   * @return The tile object at the specified location.
   */
	public Tile getTile(int x, int y)
	{
		return tile[x][y];
	}
}
